<!DOCTYPE html>
<html lang="zh-CN">

    <#assign html_title="搬砖之家">
<head>

    <#include "/components/head.htm"   />
    <style>
        .table > thead > tr > th,
        .table > tbody > tr > th,
        .table > tfoot > tr > th,
        .table > thead > tr > td,
        .table > tbody > tr > td,
        .table > tfoot > tr > td {
            padding: 13px;
            line-height: 1.42857143;
            vertical-align: middle;
            border-top: 1px solid #ddd;
        }
    </style>
</head>
 <body>
<div id="fullPage">
    <!--Page One-->
    <#include "/components/header.section.htm"   />

    <section>
        <div class="container white-block">
            <h2>网站设置</h2>
            <#if msg??>
                <div class="alert alert-success" role="alert">保存配置成功!</div>
            </#if>

            <form action="/view/user/submit_config" method="post">
                <table class="table table-hover table-striped">
                    <tr>
                        <th>序号</th>
                        <th>区域</th>
                        <th>网站名称</th>
                        <th>是否可充值</th>
                        <th>是否可提现</th>
                        <th>是否显示</th>
                    </tr>
                    <#list sites as site >
                        <tr>
                            <td> ${site_index+1}</td>
                            <td>${site.REGION}</td>
                            <td>${site.WEBSITE}</td>
                            <td>
                                <input type="checkbox" name="recharge" value="${site.WEBSITE!}"
                                <#if configMap.containsKey(site.WEBSITE) && configMap.get(site.WEBSITE).getInt("recharge_enable")==0 >   <#else> checked="checked" </#if>
                            > </td>
                            <td>
                                <input type="checkbox" name="withdraw" value="${site.WEBSITE!}"
                                <#if configMap.containsKey(site.WEBSITE) && configMap.get(site.WEBSITE).getInt("withdraw_enable")==0 >  <#else> checked="checked" </#if>
                            ></td>
                            <td>
                                <input type="checkbox" name="display" value="${site.WEBSITE!}"
                                <#if configMap.containsKey(site.WEBSITE) && configMap.get(site.WEBSITE).getInt("display_enable")==0 >  <#else> checked="checked" </#if>
                                ></td>
                        </tr>

                    </#list>
                </table>
                <button class="btn btn-primary center-block">保存配置</button>
                <br>
            </form>
        </div>
    </section>
</div>
<script>
    $(document).ready(function () {

    });
</script>
</body>

</html>